package com.kristin;

import com.kristin.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService userService = (UserService)context.getBean("userService");
//        OrderService orderService = (OrderService)context.getBean("orderService");
//        System.out.println(userService);
//        System.out.println(orderService);
        userService.test();
        System.out.println(context.getBean("sqlSessionFactory"));
    }

}
